package idea.mybatis.db.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 主子表关联查询
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
public class VmMainSub implements Serializable{

	private static final long serialVersionUID = 1L;

	private Integer mainId;
	private String mainName;
	private Date mainDate;
	private String mainDesc;
	private Integer subId;
	private String subName;
	private Integer subSex;

	public Integer getMainId() {
		return mainId;
	}

	public VmMainSub setMainId(Integer mainId) {
		this.mainId = mainId;
		return this;
	}

	public String getMainName() {
		return mainName;
	}

	public VmMainSub setMainName(String mainName) {
		this.mainName = mainName;
		return this;
	}

	public Date getMainDate() {
		return mainDate;
	}

	public VmMainSub setMainDate(Date mainDate) {
		this.mainDate = mainDate;
		return this;
	}

	public String getMainDesc() {
		return mainDesc;
	}

	public VmMainSub setMainDesc(String mainDesc) {
		this.mainDesc = mainDesc;
		return this;
	}

	public Integer getSubId() {
		return subId;
	}

	public VmMainSub setSubId(Integer subId) {
		this.subId = subId;
		return this;
	}

	public String getSubName() {
		return subName;
	}

	public VmMainSub setSubName(String subName) {
		this.subName = subName;
		return this;
	}

	public Integer getSubSex() {
		return subSex;
	}

	public VmMainSub setSubSex(Integer subSex) {
		this.subSex = subSex;
		return this;
	}

	public static final String MAIN_ID = "a.main_id";

	public static final String MAIN_NAME = "a.main_name";

	public static final String MAIN_DATE = "a.main_date";

	public static final String MAIN_DESC = "a.main_desc";

	public static final String SUB_ID = "b.sub_id";

	public static final String SUB_NAME = "b.sub_name";

	public static final String SUB_SEX = "b.sub_sex";

	@Override
	public String toString() {
		return "VmMainSub{" +
			"mainId=" + mainId +
			", mainName=" + mainName +
			", mainDate=" + mainDate +
			", mainDesc=" + mainDesc +
			", subId=" + subId +
			", subName=" + subName +
			", subSex=" + subSex +
			"}";
	}
}
